﻿namespace LeetCodeProject._2001_3000._2201_2300._2255;

public class Solution
{
    public int CountPrefixes(string[] words, string s)
    {
        int res = 0;
        foreach (var word in words)
        {
            if (s.StartsWith(word))
            {
                res++;
            }
        }

        return res;
    }
}